<%--
  Created by IntelliJ IDEA.
  User: 张乐
  Date: 2020/4/12
  Time: 16:38
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<form action="${pageContext.request.contextPath}/userinfo/update" method="post" >
    <table border="0" cellspacing="2" cellpadding="2" align="center">
        <tr>
            <td align="center" colspan="2">修改学生信息</td>
        </tr>
        <tr>
            <td>学生姓名</td>
            <td>
                <input type="text" name="name" value="${u.name}">
                <input type="hidden" name="user_id" value="${u.user_id}">
            </td>
        </tr>
        <tr>
            <td>学生密码</td>
            <td><input type="password" name="password" value="${u.password}"></td>
        </tr>
        <tr>
            <td>学生电话</td>
            <td><input type="text" name="tel" value="${u.tel}"></td>
        </tr>
        <tr>
            <td>班级名称</td>
            <td>
                <select name="class_id">
                    <c:forEach var="c" items="${list}">
                        <option value="${c.classes.class_id}">${c.classes.cname}</option>
                    </c:forEach>
                </select>
            </td>
        </tr>
        <tr>
            <td><input type="submit" value="修改"></td>
            <td><input type="reset" value="重置"></td>
        </tr>
    </table>
</form>
</body>
</html>
